name_data = "satisrim"
password_data = "zxysww20210419"

from datetime import datetime
import time
count = 3
while True:
    count -= 1
    if count == -1:
        print("请五分钟之后尝试哦~")
    else:
        user_name = input("用户名：")
        user_password = input("密码：")

        if user_name == name_data:
            if user_password == password_data:
                print("欢迎",name_data,"进入系统~")

                now = time.strftime("%Y-%m-%d %H:%M", time.localtime())
                print(now)

                week = time.strftime("%w", time.localtime())  # 定义星期为数字0-6，数字0是星期天
                hour = datetime.today().hour

                week_day = int(week)  #将星期与时间转化为整数，有没有都无所谓
                day_time = int(hour)

                if week_day == 1:
                    if day_time > 10 and day_time < 12:
                        print("叮叮叮~10:30有廖汉腾老师的创业基础，别迟到哦！地点在：1-401")
                    elif day_time > 14 and day_time > 17:
                        print("叮叮叮~14:30有许智超老师的Python语言，别迟到哦！地点在：2实203")  # if else语句循环
                    else:
                        print("芜湖~休息休息！！玩游戏~~睡觉觉~~")
                elif week_day == 2:
                    if day_time > 8 and day_time < 10:
                        print("叮叮叮~8:00有宋兰兰老师的定向越野，别迟到哦！地点在：西区篮球场")
                    elif day_time > 11 and day_time > 13:
                        print("叮叮叮~11:20兼职，别忘记了！！")
                    elif day_time > 14 and day_time > 16:
                        print("叮叮叮~14:30有游鸽老师的H5，别迟到哦！地点在：3实308")
                    elif day_time > 16 and day_time > 18:
                        print("叮叮叮~16:10有袁洁老师的英语，别迟到哦！地点在：10-402")
                    elif day_time > 18 and day_time > 20:
                        print("叮叮叮~18:45有曾诗楠老师的摄影作品赏析，别迟到哦！地点在：2-106")
                    else:
                        print("芜湖~休息休息！！玩游戏~~睡觉觉~~")
                elif week_day == 3:
                    if day_time > 9 and day_time < 12:
                        print("叮叮叮~9:45有周伟老师的毛概，别迟到哦！地点在：9-201")
                    elif day_time > 18 and day_time > 20:
                        print("叮叮叮~18:45有华峥嵘老师的毛概实践，别迟到哦！地点在：7-403")
                    else:
                        print("芜湖~休息休息！！玩游戏~~睡觉觉~~")
                elif week_day == 4:
                    if day_time > 14 and day_time < 16:
                        print("叮叮叮~14:30有袁洁老师的英语，别迟到哦！地点在：10-304")
                    elif day_time > 11 and day_time > 13:
                        print("叮叮叮~11:20兼职，别忘记了！！")
                    elif day_time > 17 and day_time > 19:
                        print("叮叮叮~17:00兼职，别忘记了！！")
                    else:
                        print("芜湖~休息休息！！玩游戏~~睡觉觉~~")
                elif week_day == 5:
                    if day_time > 10 and day_time < 12:
                        print("叮叮叮~10:35有阚凤霞老师的illustrator，别迟到哦！地点在：新综612")
                    elif day_time > 14 and day_time > 16:
                        print("叮叮叮~14:30有温灵老师的手绘艺术基础，别迟到哦！地点在：1-203")
                    else:
                        print("芜湖~休息休息！！玩游戏~~睡觉觉~~")
                else:
                    print("周末时间~随意发挥~")

                print("好好享受忙碌与空闲的当下哦~")
                break
            else:
                print("不对哦~请重试~您还有",count,"次机会~")
        else:
            print("不对哦~请重试~您还有",count,"次机会~")


